﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;

namespace FastCodeGeneration.Entity
{
    [SugarTable("sys_user")]//当和数据库名称不一样可以设置表别名 指定表明
    public class User
    {
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]//数据库是自增才配自增 
        public int? UserId { set; get; }

        public string? Name { set; get; }

        [SugarColumn(ColumnName = "Gender")]
        public string? Gender { set; get; }

        [SugarColumn(ColumnName = "Email")]
        public string? Email { set; get; }
        public string? CreateBy { set; get; }
        [SugarColumn(ColumnName = "CreateDate")]
        public DateTime? CreateTime { set; get; }


    }
}
